<?php
require_once ROOT_LIBRARY_UTILITY.DS. 'BaseModel.php';

class Model_Service_Type extends BaseModel{

    public function  __construct() {
        parent::__construct();
        $this->_key = 'id';
        $this->_tableName = 'service_types';
    }

    public function getDataForPagination()
    {
        try
        {
            return $this->_db->select()
                    ->from('service_types')
                    ->order('id DESC');
        }
        catch(Zend_Db_Exception $ex)
        {
            throw new Exception($ex);
        }
    }

}
?>
